 <ul>
    {{each entityData as entity i}}
    <li class="xsy_su_refer_card_item">
         <div class="xsy_su_refer_card_itembody">
            <h2 class="xsy_su_refer_card_field">
            <div class="xsy_su_refer_card_title">
            {{if entity.scheduleOrTask == 'task'}}
                {{if entity.status == 2 && entity.isOwner}}
                    <a href="javascript:void(0)" class="xsy_schedule_refer_task xsy_schedule_refer_task_done" entryid="{{entity.id}}">
                {{else if entity.isOwner}}
                    <a href="javascript:void(0)" class="xsy_schedule_refer_task xsy_schedule_refer_task_normal" entryid="{{entity.id}}">
                {{else if entity.status == 2}}
                    <a href="javascript:void(0)" class="xsy_schedule_refer_task xsy_schedule_refer_task_checkdisabled" entryid="{{entity.id}}">
                {{else if entity.status != 2}}
                    <a href="javascript:void(0)" class="xsy_schedule_refer_task xsy_schedule_refer_task_disabled" entryid="{{entity.id}}">
                {{/if}}
                 <i></i>
                </a>
                <a target="_blank" href="/final/task.action?taskId={{entity.id}}" class="xsy_su_refer_card_link">{{entity.taskName}}</a>
            {{else}}
                <span class="xsy_schedule_refer_legend xsy_schedule_refer_{{entity.color}}"></span>
                <a target="_blank" href="/final/schedule.action?scheduleId={{entity.id}}" class="xsy_su_refer_card_link">{{entity.name}}</a>

            {{/if}}
            <!-- 任务的属性为taskName,  日程的属性为name -->
                 <div class="xsy_su_refer_card_toolbar">
                     <div class="xsy_su_refer_card_warp">

                     </div>
                 </div>
            </div>
             </h2>
             <ul class="xsy_su_refer_card_rows">
                 <li class="xsy_su_refer_card_group">
                     <div class="xsy_su_refer_card_recorditem">
                         {{if entity.scheduleOrTask == 'task'}}
                            <div class="xsy_su_refer_card_label ellipsis">
                                截止时间：
                            </div>
                            <div class="xsy_su_refer_card_value ellipsis">
                                {{entity.planFinishDate}}
                            </div>
                         {{else}}
                            <div class="xsy_su_refer_card_label ellipsis">
                                起止时间：
                            </div>
                            <div class="xsy_su_refer_card_value ellipsis">
                                {{entity.startDate}} 至 {{entity.endDate}}
                            </div>
                         {{/if}}    
                     </div>
                 </li>
                 <li class="xsy_su_refer_card_group">
                     <div class="xsy_su_refer_card_recorditem">
                     {{if entity.scheduleOrTask == 'task'}}
                        <div class="xsy_su_refer_card_label ellipsis">负责人：</div>
                    {{else}}
                        <div class="xsy_su_refer_card_label ellipsis">参与人：</div>
                     {{/if}}
                        <div class="xsy_su_refer_card_value ellipsis">
                            {{each entity.users as user i}}
                                <a class="username" href="/final/user.action?uid={{user.value}}" ucard="uid={{user.value}}">{{user.label}}</a>
                            {{/each}}
                        </div>

                     </div>
                 </li>
             </ul>
         </div>
     </li>
     {{/each}}
</ul>
